<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-userMsg-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">开发者微信号：</label>
				<div class="col-sm-8">
					<input id="toUserName" name="toUserName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发送方帐号（一个OpenID）：</label>
				<div class="col-sm-8">
					<input id="fromUserName" name="fromUserName" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">消息创建时间 （整型）：</label>
				<div class="col-sm-8">
					<input id="createTime" name="createTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">消息类型，文本为text：</label>
				<div class="col-sm-8">
					<input id="msgType" name="msgType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">回复的消息内容（换行：在content中能够换行，微信客户端就支持换行显示）：</label>
				<div class="col-sm-8">
					<input id="content" name="content" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">消息id，64位整型：</label>
				<div class="col-sm-8">
					<input id="msgId" name="msgId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">图片链接（由系统生成）：</label>
				<div class="col-sm-8">
					<input id="picUrl" name="picUrl" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">图片消息媒体id，可以调用获取临时素材接口拉取数据。：</label>
				<div class="col-sm-8">
					<input id="mediaId" name="mediaId" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">语音格式，如amr，speex等：</label>
				<div class="col-sm-8">
					<input id="format" name="format" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">视频消息缩略图的媒体id，可以调用多媒体文件下载接口拉取数据。：</label>
				<div class="col-sm-8">
					<input id="thumbMediaid" name="thumbMediaid" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">地理位置维度：</label>
				<div class="col-sm-8">
					<input id="locationX" name="locationX" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">地理位置经度：</label>
				<div class="col-sm-8">
					<input id="locationY" name="locationY" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">地图缩放大小：</label>
				<div class="col-sm-8">
					<input id="scale" name="scale" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">地理位置信息：</label>
				<div class="col-sm-8">
					<input id="label" name="label" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">消息标题：</label>
				<div class="col-sm-8">
					<input id="title" name="title" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">消息描述：</label>
				<div class="col-sm-8">
					<input id="description" name="description" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">消息链接：</label>
				<div class="col-sm-8">
					<input id="url" name="url" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "wx/userMsg"
		$("#form-userMsg-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-userMsg-add').serialize());
	        }
	    }
	</script>
</body>
</html>
